package ruifeng.zcj.dig.base.test;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;
import ruifeng.zcj.dig.base.bean.Base;
import ruifeng.zcj.dig.groble.ConnUtils;
import ruifeng.zcj.dig.ui.home.recruit.bean.Result;
import rx.Observable;

/**
 * Created by Administrator on 2016/3/23.
 */
public interface ApiService {

    @Headers("Content-Type: image/png")
    @POST("uploadfile.action/{name}")
    Observable<Result> upFile(@Path("name") String name, @Body RequestBody body);

   /* ("", ConnUtils.getSignature(ConnUtils.token, timestamp, nonce));
    params.addBodyParameter("timestamp", timestamp);
    params.addBodyParameter("nonce", nonce);

    @POST("appservice/login.action/{signature},{}")
    Observable<ResponseBody> login(@Path("index") int index);*/

}
